package com.spzx.channel.service.impl;


import com.spzx.channel.service.IBrandService;
import com.spzx.common.core.constant.SecurityConstants;
import com.spzx.common.core.domain.R;
import com.spzx.product.api.SpzxService;
import com.spzx.product.api.domain.Brand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author ChenXing
 * @Description
 * @Create 2024/8/8 21:48
 */
@Service
public class BrandServiceImpl implements IBrandService {

    @Autowired
    private SpzxService spzxService;

    @Override
    public List<Brand> getBrandAll() {

        R<List<Brand>> brandList = spzxService.getBrandAll(SecurityConstants.INNER);

        return brandList.getData();
    }
}
